<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Consultar Artista</title>
    </h:head>


    <h:body>
        <ui:include src="../menu.xhtml" />
        <div id="corpo">
            <f:view>
                <h:form>
                    <fieldset>
                        <legend>Artista</legend>
                           <h:panelGrid columns="3" id="panel">
                                <h:outputLabel for="nome" value="Codigo:" />
                                <h:inputText value="#{artistaBean.codigoBusca}"></h:inputText>
                                <h:commandButton id="btn" value="Buscar" action="#{artistaBean.buscar}"/>
                            </h:panelGrid>

                            <table class="tabela">
                                <th>Nome</th>
                                <th>Telefone</th>
                                <tr>
                                    <td> #{artistaBean.artista.nome}</td>
                                    <td> #{artistaBean.artista.telefone}</td>
                                </tr>

                            </table>
                    </fieldset>
                </h:form>
                <ui:include src="../rodape.xhtml" />
            </f:view>
        </div>
    </h:body>
</html>